<html>
<head>
<meta charset="UTF-8">
<title>用户管理新增</title>
<link id="easyuiTheme"  id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-add.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<script src="../../static/js/validator.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	<form id="ff" method="post">
		<div class="esaas-info-title">用户管理信息</div>
		<table class="esaas-info-add-table">
			<tr>
				<td width="15%" align="right">用户码：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="actorno" data-options="required:true, validType:'length[1,8]'"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">用户名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="actorname" data-options="required:true, validType:'length[1,20]'"
									   style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">昵称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="nickname" data-options="required:false" validType="maxLength[40]"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">身份证号码：</td>
				<td width="35%"><input class="easyui-textbox" type="text" validType="idCardNo"
									   name="idcardno" data-options="required:false"
									   style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">生日：</td>
				<td width="35%"><input class="easyui-datebox" type="text" editable="false"
									   name="birthday" data-options="required:false"
									   style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">联系电话：</td>
				<td width="35%"><input class="easyui-textbox" type="text" validType="mobileTelephone"
									   name="telnum" data-options="required:false"
									   style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">邮箱：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="usermail" data-options="required:false, validType:'email'"
									   style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">职级：</td>
				<td width="35%"><select class="easyui-combobox"
										name="rank" style="width: 100%; height: 25px;"
										data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:ZB_POS_LEVEL">
								</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">机构号：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="orgid" data-options="required:true, validType:'length[1,16]'"
									   style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">部门编号：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="depno" data-options="required:false" validType="maxLength[16]"
									   style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">是否管理员：</td>
				<td width="35%"><select class="easyui-combobox"
										name="isadmin" style="width: 100%; height: 25px;"
										data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:STD_PUB_YN">
				</select></td>
				<td width="15%" align="right">状态：</td>
				<td width="35%"><select class="easyui-combobox"
										name="state" style="width: 100%; height: 25px;"
										data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:USER_STATUS">
								</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">备注：</td>
				<td width="90%" colspan="3"><input class="easyui-textbox" type="text"
					name="memo" data-options="required:false, multiline: true"
					style="width: 100%; height: 50px;"></input></td>
			</tr>
		</table>
	</form>
	<div class="esaas-info-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton " iconCls="icon-ok" onclick="submitForm()" style="width:90px">&nbsp;保&nbsp;存&nbsp;</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeForm()" style="width:90px">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>
		$(function() {
            addTitle("新增");
        });

		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPostJson('../../api/s/user', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm() {
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>